package org.example.intern.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.intern.entity.common.SysUser;

public interface ISysUserService extends IService<SysUser> {

    /**
     * 通过用户名查询用户
     * @param username
     * @return SysUser
     */
    SysUser findByUsername(String username);

    /**
     * 用户登录实现
     * @param username 用户名
     * @param password 密码
     * @return SysUser
     */
    SysUser login(String username,String password);
}
